package com.example.spring.security.repository;

import com.example.spring.security.entity.UserRoleEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : zhayh
 * @Date : 2021-4-18 15:21
 * @Description:
 */

@Repository
public interface UserRoleRepository extends JpaRepository<UserRoleEntity, Long> {
    // 根据用户登录名获取账户对应角色
    List<UserRoleEntity> findByUserLogin(String login);
}
